<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * 运行迁移
     */
    public function up()
    {
        Schema::create('dawn_task_settings', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('user_id')->comment('用户ID');
            $table->integer('image_count')->default(1)->comment('图片上传数量');
            $table->boolean('random_location')->default(false)->comment('是否随机位置');
            $table->boolean('default_images')->default(false)->comment('是否默认照片');
            $table->boolean('feedback_enabled')->default(false)->comment('是否开启反馈');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * 回滚迁移
     */
    public function down()
    {
        Schema::dropIfExists('dawn_task_settings');
    }
}; 